# numbers = [5, 2, 9, 1, 7, 6]
# numbers.reverse()
# print(numbers)
# print(numbers[:])
# print(numbers[::-1])
# print(numbers[::-2])

# numbers = [5, 2, 9, 1, 7, 6]
# l = []
# for i in numbers:
#     if i >=5:
#         print(i)
#         l.append(i)
# print(l)

# numbers = [5, 2, 9, 1, 7, 6]
# print([i for i in numbers if i >= 5])
# l=[23,4,5,66,76,12,88,23,65]
# print([i for i in l if i % 2 == 0])
# l2 = [i for i in l if i % 2 == 0]
# print(l2)
# l2 = 0
# numbers = [1, 2, -3, 4, -5, 6, 7, -8, 9]
# for number in numbers:
#     if number >= 0:
#        l2 = l2 + number
# print(l2)
# data = ["yuan", "alex", "rain", "eric"]
# l = []
# for i in data:
#     print(i[::-1])
#     l.append(i[::-1])
# print(l)
# print([i[::-1] for i in data ])
# numbers = [23, 4, 5, 66, 76, 12, 88, 23, 65]
# max_value = numbers[0]
#
# for i in numbers:
#     if i > max_value:
#         max_value = i
# print(max_value)
# numbers = [[1, 2, 3], [4, 5, 6], [7, 8, 9]]
# l = []
# for i in numbers:
#     for j in i:
#         l.append(j)
# print(l)
# numbers = [[1, 2, 3], [4, 5, 6], [7, 8, 9]]
# print([j for i in numbers for j in i])

# n = 0
